package com.p2p.common.enums;

/**
 * Created by lff on 2016/9/12.
 */
public enum ResponseEnum {
    SUCCESS(1, "SUCCESS"),
    USERNAME_OR_PASSWORD_IS_NULL(10000, "账号密码为空"),
    USERNAME_OR_PASSWORD_IS_ERROR(10001, "账号密码错误"),
    ACCOUNT_IS_INVALID(10002, "无效账号"),
    USERNAME_IS_EXIST(10003, "用户名存在"),
    ACCOUNT_IS_DISABLE(10004, "账号已停用"),
    ACCOUNT_IS_CHECKING(10005, "账号审核中"),


    DOWNVERSION_NETBARID_ERROR(11001, "下发版本网吧ID格式不正确"),
    DOWNVERSION_TYPECONTENT_ERROR(11002, "下发版本信息不正确"),

    TOKEN_INVALID(20000, "ACCESS_TOKEN无效,请重新登录获取"),
    NO_PERMISSION(20001, "无权限"),


    //  super666额外添加

    NETBAR_NAME_ERROR(30000, "网吧名称错误"),
    NETBAR_ADDRESS_ERROR(30001, "网吧地址错误"),
    NETBAR_COMPUTER_COUNT_ERROR(30002, "网吧机器数量错误"),
    NETBAR_CONTACT_NAME_ERROR(30003, "网吧联系人名称错误"),
    USER_PHONE_ERROR(30004, "用户手机错误"),
    USER_NAME_ERROR(30005, "用户名错误"),
    USER_PASSWORD_ERROR(30006, "密码错误"),
    MESSAGE_CODE_ERROR(30007, "验证码错误"),
    PHONE_SEND_OVER_ERROR(30008, "短信发送超过最大次数"),
    PHONE_SEND_TYPE_ERROR(30009, "短信请求类型错误"),
    MESSAGE_CODE_INVALID(30010, "验证码失效"),
    GETNETBAR_ID_ERROR(30011, "获取网吧id失败"),
    SERVER_ERROR(40000, "服务器异常"),

    UPDATE_NETBARNOTICE_IS_FAIL(30028, "提交网吧公告失败"),
    UPDATE_NETBARACTIVTY_IS_FAIL(30029, "提交网吧活动失败"),
    UPDATE_NETBARSETTING_IS_FAIL(30030, "提交桌面风格失败"),
    UPDATE_SERVICESWITCH_IS_FAIL(30031, "提交服务开关失败"),

    //红包活动提交时的异常信息
    INSERT_LOLACTIVITY_IS_FAIL(30020, "新增私有规则失败"),
    UPDATE_LOLACTIVITY_IS_FAIL(30021, "更新私有规则失败"),
    DELETE_LOLACTIVITY_IS_FAIL(30022, "删除私有规则失败"),

    REDPACKET_NAME_ERROR(32000, "红包活动名称错误"),
    INSERT_REDPACKET_IS_FAIL(30023, "新增红包活动失败"),
    UPDATE_REDPACKET_IS_FAIL(30024, "更新红包活动失败"),
    DELETE_REDPACKET_IS_FAIL(30025, "删除红包活动失败"),
    REDPACKET_ID_ERROR(32026, "红包活动id错误"),
    //lol活动提交时的异常信息
    ACTIVITY_NAME_ERROR(32000, "lol活动名称错误"),
    ACTIVITY_TYPE_ERROR(32001, "lol活动类型错误"),
    ACTIVITY_RANK_ERROR(32002, "lol用户等级错误"),
    ACTIVITY_GAME_TYPE_ERROR(32003, "lol游戏类型名称错误"),
    ACTIVITY_HERO_RANK_ERROR(32004, "lol英雄等级错误"),
    ACTIVITY_REPEAT_TYPE_ERROR(32005, "lol活动重复类型错误"),
    ACTIVITY_REWARD_COUNT_ERROR(32006, "领取次数错误"),
    ACTIVITY_ID_ERROR(32007, "lol活动id错误"),

    //	全局活动配置异常信息
    INSERT_GLOBAL_IS_FAIL(30040, "新增全局活动配置失败"),
    UPDATE_GLOBAL_IS_FAIL(30041, "更新全局活动配置任务失败"),
    DELETE_GLOBAL_IS_FAIL(30042, "删除全局活动配置任务失败"),
    GLOBAL_IDENTITY_ERROR(30043, "身份是否验证参数错误"),
    GLOBAL_TIME_ERROR(30044, "全局活动配置时间参数错误"),
    GLOBAL_PRIZE_EXPIRATION(30045, "全局活动配置奖品有效时间参数错误"),
    GLOBAL_NUMBER_ERROR(30046, "全局活动配置网吧人数参数错误"),
    GLOBAL_ID_ERROR(320047, "全局活动id错误"),

    //	积分配置配置异常信息
    INSERT_INTEGRAL_IS_FAIL(30070, "新增积分配置失败"),
    UPDATE_INTEGRAL_IS_FAIL(30071, "更新积分配置任务失败"),
    DELETE_INTEGRAL_IS_FAIL(30072, "删除积分配置任务失败"),
    INTEGRAL_NET_ERROR(30073, "每小时上网奖励积分参数错误"),
    INTEGRAL_GAME_ERROR(30074, "每小时游戏奖励积分参数错误"),
    INTEGRAL_CHARGE_ERROR(30075, "充点卡送积分参数错误"),
    INTEGRAL_HORN_COST_ERROR(30076, "发喇叭所需积分数参数错误"),
    INTEGRAL_FORBID_REGISTER_ERROR(320077, "禁止住户注册参数错误"),
    INTEGRAL_ID_ERROR(320047, "积分id错误"),

    //在线抽奖活动提交时的异常信息


    Lottery_NAME_ERROR(32000, "在线抽奖活动名称错误"),
    INSERT_Lottery_IS_FAIL(30023, "新增在线抽奖活动失败"),
    UPDATE_Lottery_IS_FAIL(30024, "更新在线抽奖活动失败"),
    DELETE_Lottery_IS_FAIL(30025, "删除在线抽奖活动失败"),
    Lottery_ID_ERROR(32026, "在线抽奖活动id错误"),

    //刮刮卡活动异常信息
    INSERT_CARD_IS_FAIL(30080, "刮刮卡新增数据失败"),
    UPDATE_CARD_IS_FAIL(30081, "刮刮卡新更新据失败"),
    DELETE_CARD_IS_FAIL(30082, "刮刮卡新深处据失败"),
    SCRATCH_CARD_ID_ERROR(30083, "刮刮卡id错误"),
    INTEGRAL_PERCENT_ERROR(30083, "刮刮卡奖品几率设置错误"),

    INSERT_RedpacketActivity_IS_FAILs(32000, "红包活动名称错误"),
    INSERT_REDPACKETActivity_IS_FAIL(30023, "新增红包活动失败"),
    UPDATE_RedpacketActivity_IS_FAIL(30024, "更新红包活动失败"),
    DELETE_REDPACKETActivity_IS_FAIL(30025, "删除红包活动失败"),
    RedpacketActivity_ID_ERROR(32026, "红包活动id错误"),


    SIGNACTIVITY_NAME_ERROR(32100, "在线签到活动名称错误"),
    INSERT_SIGNACTIVITY_IS_FAIL(31023, "新增在线签到活动失败"),
    UPDATE_SIGNACTIVITY_IS_FAIL(31024, "更新在线签到活动失败"),
    DELETE_SIGNACTIVITY_IS_FAIL(31025, "删除在线签到活动失败"),
    SIGNACTIVITY_ID_ERROR(32026, "在线签到活动id错误"),


    INSERT_LOLTASK_IS_FAIL(30025, "新增lol任务失败"),
    UPDATE_LOLTASK_IS_FAIL(30026, "更新lol任务失败"),
    DELETE_LOLTASK_IS_FAIL(30027, "删除lol任务失败");


    private Integer code;
    private String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
